package com.goldcn.b2b.dao;

import com.goldcn.b2b.model.ClassifyDiscountDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ClassifyDiscountDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ClassifyDiscountDetail record);

    int insertSelective(ClassifyDiscountDetail record);

    ClassifyDiscountDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ClassifyDiscountDetail record);

    int updateByPrimaryKey(ClassifyDiscountDetail record);

    List<ClassifyDiscountDetail> selectByClazzIDList(Map<String,Object> map);

    int batchInsert(List<ClassifyDiscountDetail> list);

    int deleteByGroupID(Long groupID);

    List<ClassifyDiscountDetail> selectByByGroupID(Long groupID);

    ClassifyDiscountDetail selectByGroupIDAndClazzID(@Param("groupID") Long groupID,@Param("clazzID") String clazzID);

    List<Map<String,Object>> selectGoodsDiscountRate(Long groupID);

    List<String> selectGoodIdsByByGroupID(Long groupID);
}